package wiring.bean;

import java.util.Map;

public class TwoManBand implements Performer {
	private Map <String, Instrument> instruments;
	public TwoManBand(){}	
	public void setInstruments(Map<String, Instrument> instruments) {
		this.instruments = instruments;
	}
	@Override
	public void perform() throws PerformanceException {
		for( String key : instruments.keySet() ) {
			Instrument instrument = instruments.get( key );
			System.out.println( key );
			instrument.play();
		}		
	}
}




